package com.yuanchu.goods.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yuanchu.common.utils.PageUtils;
import com.yuanchu.goods.dto.SpecData;
import com.yuanchu.goods.entity.YoshopGoodsSpecRelEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品与规格值关系记录表
 *
 * @author adan
 * @email 2028038953@gmail.com
 * @date 2023-12-19 02:17:43
 */
public interface YoshopGoodsSpecRelService extends IService<YoshopGoodsSpecRelEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 根据商品id获取规格列表
     * @param goodsId
     * @return
     */
    List<SpecData.SpecList> getSpecListById(Integer goodsId);
}

